﻿#include "replycomment.h"
#include "ui_replycomment.h"
#include <QMessageBox>

ReplyComment::ReplyComment(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::ReplyComment)
{
    ui->setupUi(this);
}

ReplyComment::~ReplyComment()
{
    delete ui;
}

void ReplyComment::setCommentID(const QString& commentID)
{
    m_commentID = commentID;
}

void ReplyComment::on_pb_submit_clicked()
{
    emit signalSubmitBusComment(m_commentID, ui->te_busComment->document()->toPlainText());
}

void ReplyComment::on_pb_cancel_clicked()
{
    this->close();
}

void ReplyComment::errorShow(const QString &msg)
{
    QMessageBox::warning(this, "警告", msg, QMessageBox::Yes , QMessageBox::Yes);
}
